# 基于jdk17的镜像
FROM openjdk:17
# 定义进入容器时默认位置，接下来后续操作的工作位置
WORKDIR /app
# 将当前目录下的jar包复制到docker容器的/app 目录下
ADD ali-dbhub-server/ali-dbhub-server-start/target/ali-dbhub-server-start.jar ali-dbhub-server-start.jar
# 让当前容器暴露10824
EXPOSE 10824
# 运行jar包
ENTRYPOINT ["java","-Dspring.profiles.active=release","-jar","ali-dbhub-server-start.jar"]